package com.chenxingnet.dto;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class JurisdictionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public JurisdictionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andJidIsNull() {
            addCriterion("jId is null");
            return (Criteria) this;
        }

        public Criteria andJidIsNotNull() {
            addCriterion("jId is not null");
            return (Criteria) this;
        }

        public Criteria andJidEqualTo(Integer value) {
            addCriterion("jId =", value, "jid");
            return (Criteria) this;
        }

        public Criteria andJidNotEqualTo(Integer value) {
            addCriterion("jId <>", value, "jid");
            return (Criteria) this;
        }

        public Criteria andJidGreaterThan(Integer value) {
            addCriterion("jId >", value, "jid");
            return (Criteria) this;
        }

        public Criteria andJidGreaterThanOrEqualTo(Integer value) {
            addCriterion("jId >=", value, "jid");
            return (Criteria) this;
        }

        public Criteria andJidLessThan(Integer value) {
            addCriterion("jId <", value, "jid");
            return (Criteria) this;
        }

        public Criteria andJidLessThanOrEqualTo(Integer value) {
            addCriterion("jId <=", value, "jid");
            return (Criteria) this;
        }

        public Criteria andJidIn(List<Integer> values) {
            addCriterion("jId in", values, "jid");
            return (Criteria) this;
        }

        public Criteria andJidNotIn(List<Integer> values) {
            addCriterion("jId not in", values, "jid");
            return (Criteria) this;
        }

        public Criteria andJidBetween(Integer value1, Integer value2) {
            addCriterion("jId between", value1, value2, "jid");
            return (Criteria) this;
        }

        public Criteria andJidNotBetween(Integer value1, Integer value2) {
            addCriterion("jId not between", value1, value2, "jid");
            return (Criteria) this;
        }

        public Criteria andJnameIsNull() {
            addCriterion("jName is null");
            return (Criteria) this;
        }

        public Criteria andJnameIsNotNull() {
            addCriterion("jName is not null");
            return (Criteria) this;
        }

        public Criteria andJnameEqualTo(String value) {
            addCriterion("jName =", value, "jname");
            return (Criteria) this;
        }

        public Criteria andJnameNotEqualTo(String value) {
            addCriterion("jName <>", value, "jname");
            return (Criteria) this;
        }

        public Criteria andJnameGreaterThan(String value) {
            addCriterion("jName >", value, "jname");
            return (Criteria) this;
        }

        public Criteria andJnameGreaterThanOrEqualTo(String value) {
            addCriterion("jName >=", value, "jname");
            return (Criteria) this;
        }

        public Criteria andJnameLessThan(String value) {
            addCriterion("jName <", value, "jname");
            return (Criteria) this;
        }

        public Criteria andJnameLessThanOrEqualTo(String value) {
            addCriterion("jName <=", value, "jname");
            return (Criteria) this;
        }

        public Criteria andJnameLike(String value) {
            addCriterion("jName like", value, "jname");
            return (Criteria) this;
        }

        public Criteria andJnameNotLike(String value) {
            addCriterion("jName not like", value, "jname");
            return (Criteria) this;
        }

        public Criteria andJnameIn(List<String> values) {
            addCriterion("jName in", values, "jname");
            return (Criteria) this;
        }

        public Criteria andJnameNotIn(List<String> values) {
            addCriterion("jName not in", values, "jname");
            return (Criteria) this;
        }

        public Criteria andJnameBetween(String value1, String value2) {
            addCriterion("jName between", value1, value2, "jname");
            return (Criteria) this;
        }

        public Criteria andJnameNotBetween(String value1, String value2) {
            addCriterion("jName not between", value1, value2, "jname");
            return (Criteria) this;
        }

        public Criteria andJroleIsNull() {
            addCriterion("jRole is null");
            return (Criteria) this;
        }

        public Criteria andJroleIsNotNull() {
            addCriterion("jRole is not null");
            return (Criteria) this;
        }

        public Criteria andJroleEqualTo(String value) {
            addCriterion("jRole =", value, "jrole");
            return (Criteria) this;
        }

        public Criteria andJroleNotEqualTo(String value) {
            addCriterion("jRole <>", value, "jrole");
            return (Criteria) this;
        }

        public Criteria andJroleGreaterThan(String value) {
            addCriterion("jRole >", value, "jrole");
            return (Criteria) this;
        }

        public Criteria andJroleGreaterThanOrEqualTo(String value) {
            addCriterion("jRole >=", value, "jrole");
            return (Criteria) this;
        }

        public Criteria andJroleLessThan(String value) {
            addCriterion("jRole <", value, "jrole");
            return (Criteria) this;
        }

        public Criteria andJroleLessThanOrEqualTo(String value) {
            addCriterion("jRole <=", value, "jrole");
            return (Criteria) this;
        }

        public Criteria andJroleLike(String value) {
            addCriterion("jRole like", value, "jrole");
            return (Criteria) this;
        }

        public Criteria andJroleNotLike(String value) {
            addCriterion("jRole not like", value, "jrole");
            return (Criteria) this;
        }

        public Criteria andJroleIn(List<String> values) {
            addCriterion("jRole in", values, "jrole");
            return (Criteria) this;
        }

        public Criteria andJroleNotIn(List<String> values) {
            addCriterion("jRole not in", values, "jrole");
            return (Criteria) this;
        }

        public Criteria andJroleBetween(String value1, String value2) {
            addCriterion("jRole between", value1, value2, "jrole");
            return (Criteria) this;
        }

        public Criteria andJroleNotBetween(String value1, String value2) {
            addCriterion("jRole not between", value1, value2, "jrole");
            return (Criteria) this;
        }

        public Criteria andJswitchIsNull() {
            addCriterion("jSwitch is null");
            return (Criteria) this;
        }

        public Criteria andJswitchIsNotNull() {
            addCriterion("jSwitch is not null");
            return (Criteria) this;
        }

        public Criteria andJswitchEqualTo(Integer value) {
            addCriterion("jSwitch =", value, "jswitch");
            return (Criteria) this;
        }

        public Criteria andJswitchNotEqualTo(Integer value) {
            addCriterion("jSwitch <>", value, "jswitch");
            return (Criteria) this;
        }

        public Criteria andJswitchGreaterThan(Integer value) {
            addCriterion("jSwitch >", value, "jswitch");
            return (Criteria) this;
        }

        public Criteria andJswitchGreaterThanOrEqualTo(Integer value) {
            addCriterion("jSwitch >=", value, "jswitch");
            return (Criteria) this;
        }

        public Criteria andJswitchLessThan(Integer value) {
            addCriterion("jSwitch <", value, "jswitch");
            return (Criteria) this;
        }

        public Criteria andJswitchLessThanOrEqualTo(Integer value) {
            addCriterion("jSwitch <=", value, "jswitch");
            return (Criteria) this;
        }

        public Criteria andJswitchIn(List<Integer> values) {
            addCriterion("jSwitch in", values, "jswitch");
            return (Criteria) this;
        }

        public Criteria andJswitchNotIn(List<Integer> values) {
            addCriterion("jSwitch not in", values, "jswitch");
            return (Criteria) this;
        }

        public Criteria andJswitchBetween(Integer value1, Integer value2) {
            addCriterion("jSwitch between", value1, value2, "jswitch");
            return (Criteria) this;
        }

        public Criteria andJswitchNotBetween(Integer value1, Integer value2) {
            addCriterion("jSwitch not between", value1, value2, "jswitch");
            return (Criteria) this;
        }

        public Criteria andJpubdateIsNull() {
            addCriterion("jPubdate is null");
            return (Criteria) this;
        }

        public Criteria andJpubdateIsNotNull() {
            addCriterion("jPubdate is not null");
            return (Criteria) this;
        }

        public Criteria andJpubdateEqualTo(Date value) {
            addCriterion("jPubdate =", value, "jpubdate");
            return (Criteria) this;
        }

        public Criteria andJpubdateNotEqualTo(Date value) {
            addCriterion("jPubdate <>", value, "jpubdate");
            return (Criteria) this;
        }

        public Criteria andJpubdateGreaterThan(Date value) {
            addCriterion("jPubdate >", value, "jpubdate");
            return (Criteria) this;
        }

        public Criteria andJpubdateGreaterThanOrEqualTo(Date value) {
            addCriterion("jPubdate >=", value, "jpubdate");
            return (Criteria) this;
        }

        public Criteria andJpubdateLessThan(Date value) {
            addCriterion("jPubdate <", value, "jpubdate");
            return (Criteria) this;
        }

        public Criteria andJpubdateLessThanOrEqualTo(Date value) {
            addCriterion("jPubdate <=", value, "jpubdate");
            return (Criteria) this;
        }

        public Criteria andJpubdateIn(List<Date> values) {
            addCriterion("jPubdate in", values, "jpubdate");
            return (Criteria) this;
        }

        public Criteria andJpubdateNotIn(List<Date> values) {
            addCriterion("jPubdate not in", values, "jpubdate");
            return (Criteria) this;
        }

        public Criteria andJpubdateBetween(Date value1, Date value2) {
            addCriterion("jPubdate between", value1, value2, "jpubdate");
            return (Criteria) this;
        }

        public Criteria andJpubdateNotBetween(Date value1, Date value2) {
            addCriterion("jPubdate not between", value1, value2, "jpubdate");
            return (Criteria) this;
        }

        public Criteria andJreportstartIsNull() {
            addCriterion("jReportStart is null");
            return (Criteria) this;
        }

        public Criteria andJreportstartIsNotNull() {
            addCriterion("jReportStart is not null");
            return (Criteria) this;
        }

        public Criteria andJreportstartEqualTo(String value) {
            addCriterion("jReportStart =", value, "jreportstart");
            return (Criteria) this;
        }

        public Criteria andJreportstartNotEqualTo(String value) {
            addCriterion("jReportStart <>", value, "jreportstart");
            return (Criteria) this;
        }

        public Criteria andJreportstartGreaterThan(String value) {
            addCriterion("jReportStart >", value, "jreportstart");
            return (Criteria) this;
        }

        public Criteria andJreportstartGreaterThanOrEqualTo(String value) {
            addCriterion("jReportStart >=", value, "jreportstart");
            return (Criteria) this;
        }

        public Criteria andJreportstartLessThan(String value) {
            addCriterion("jReportStart <", value, "jreportstart");
            return (Criteria) this;
        }

        public Criteria andJreportstartLessThanOrEqualTo(String value) {
            addCriterion("jReportStart <=", value, "jreportstart");
            return (Criteria) this;
        }

        public Criteria andJreportstartLike(String value) {
            addCriterion("jReportStart like", value, "jreportstart");
            return (Criteria) this;
        }

        public Criteria andJreportstartNotLike(String value) {
            addCriterion("jReportStart not like", value, "jreportstart");
            return (Criteria) this;
        }

        public Criteria andJreportstartIn(List<String> values) {
            addCriterion("jReportStart in", values, "jreportstart");
            return (Criteria) this;
        }

        public Criteria andJreportstartNotIn(List<String> values) {
            addCriterion("jReportStart not in", values, "jreportstart");
            return (Criteria) this;
        }

        public Criteria andJreportstartBetween(String value1, String value2) {
            addCriterion("jReportStart between", value1, value2, "jreportstart");
            return (Criteria) this;
        }

        public Criteria andJreportstartNotBetween(String value1, String value2) {
            addCriterion("jReportStart not between", value1, value2, "jreportstart");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}